/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sistema_comercial.persistencia;

import com.sistema_comercial.dominio.Consumidor;
import com.sistema_comercial.util.persistencia.DAOBaseJPA2;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Fabio
 */
@Stateless
public class ConsumidorDAOJPA2 extends DAOBaseJPA2<Consumidor> implements ConsumidorDAO{

    @PersistenceContext
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return this.em;
    }

    @Override
    protected Class<Consumidor> getClasseDominio() {
        return Consumidor.class;
    }
}
